package com.mcxx.modules.miniSalvation.check.service.write;

import com.mcxx.modules.miniSalvation.order.dao.write.RecheckBatchWriteDao;
import com.mcxx.modules.miniSalvation.order.entity.RecheckBatchEntity;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@TaTransactional
public class RecheckWriteService {

    @Autowired
    private RecheckBatchWriteDao recheckBatchWriteDao;


    public int update(String status ,String [] batchNo){
        return  recheckBatchWriteDao.updateBatch(status,batchNo);
    }

    public int updateStatusDate(String status ,String [] batchNo){
        return  recheckBatchWriteDao.updateStatusDate(status,batchNo);
    }


    public int updateCountPersion(String batchNo,String checkType,String checkState ){
        return  recheckBatchWriteDao.updateCountPersion(batchNo,checkType,checkState);
    }


    public  int delete(RecheckBatchEntity recheck){
        return  recheckBatchWriteDao.delete(recheck);
    }



}
